package miracle.joker.design.command.demo1;

public class TVVolumeUpCommand implements Command {
    private TV tv;

    public TVVolumeUpCommand(TV tv) {
        this.tv = tv;
    }

    public void execute() {
        tv.volumeUp();
    }

    public void undo() {
        tv.volumeDown();
    }
}
